 /* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/


#import <Foundation/Foundation.h>
#import <JDCloudOCSDKIotlink/IotlinkModel.h>

@implementation LifeStatusResp
-(id) initWithIccid:(NSString*) iccid
      msisdn:(NSString*)msisdn
      imsi:(NSString*)imsi
      status:(NSString*)status { 
     self.iccid = iccid;               
     self.msisdn = msisdn;               
     self.imsi = imsi;               
     self.status = status;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self iccid])
    {
        [result setValue:[self iccid] forKey:@"iccid"];
    }
    if([self msisdn])
    {
        [result setValue:[self msisdn] forKey:@"msisdn"];
    }
    if([self imsi])
    {
        [result setValue:[self imsi] forKey:@"imsi"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.iccid = [dictionary objectForKey:@"iccid"];
    self.msisdn = [dictionary objectForKey:@"msisdn"];
    self.imsi = [dictionary objectForKey:@"imsi"];
    self.status = [dictionary objectForKey:@"status"];
    return self;
}
 @end
@implementation OperationIotlinkResp
-(id) initWithIccid:(NSString*) iccid
      status:(NSString*)status
      message:(NSString*)message { 
     self.iccid = iccid;               
     self.status = status;               
     self.message = message;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self iccid])
    {
        [result setValue:[self iccid] forKey:@"iccid"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self message])
    {
        [result setValue:[self message] forKey:@"message"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.iccid = [dictionary objectForKey:@"iccid"];
    self.status = [dictionary objectForKey:@"status"];
    self.message = [dictionary objectForKey:@"message"];
    return self;
}
 @end
@implementation OnOffStatusResp
-(id) initWithIccid:(NSString*) iccid
      msisdn:(NSString*)msisdn
      imsi:(NSString*)imsi
      status:(NSString*)status { 
     self.iccid = iccid;               
     self.msisdn = msisdn;               
     self.imsi = imsi;               
     self.status = status;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self iccid])
    {
        [result setValue:[self iccid] forKey:@"iccid"];
    }
    if([self msisdn])
    {
        [result setValue:[self msisdn] forKey:@"msisdn"];
    }
    if([self imsi])
    {
        [result setValue:[self imsi] forKey:@"imsi"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.iccid = [dictionary objectForKey:@"iccid"];
    self.msisdn = [dictionary objectForKey:@"msisdn"];
    self.imsi = [dictionary objectForKey:@"imsi"];
    self.status = [dictionary objectForKey:@"status"];
    return self;
}
 @end
@implementation GprsRealtimeInfoResp
-(id) initWithTotal:(NSString*) total
      used:(NSString*)used { 
     self.total = total;               
     self.used = used;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self total])
    {
        [result setValue:[self total] forKey:@"total"];
    }
    if([self used])
    {
        [result setValue:[self used] forKey:@"used"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.total = [dictionary objectForKey:@"total"];
    self.used = [dictionary objectForKey:@"used"];
    return self;
}
 @end
@implementation GprsStatusResp
-(id) initWithIccid:(NSString*) iccid
      msisdn:(NSString*)msisdn
      imsi:(NSString*)imsi
      onlinestatus:(NSString*)onlinestatus { 
     self.iccid = iccid;               
     self.msisdn = msisdn;               
     self.imsi = imsi;               
     self.onlinestatus = onlinestatus;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self iccid])
    {
        [result setValue:[self iccid] forKey:@"iccid"];
    }
    if([self msisdn])
    {
        [result setValue:[self msisdn] forKey:@"msisdn"];
    }
    if([self imsi])
    {
        [result setValue:[self imsi] forKey:@"imsi"];
    }
    if([self onlinestatus])
    {
        [result setValue:[self onlinestatus] forKey:@"onlinestatus"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.iccid = [dictionary objectForKey:@"iccid"];
    self.msisdn = [dictionary objectForKey:@"msisdn"];
    self.imsi = [dictionary objectForKey:@"imsi"];
    self.onlinestatus = [dictionary objectForKey:@"onlinestatus"];
    return self;
}
 @end
 
 


